<template>
  <f7-page>
    <f7-navbar>
      <f7-nav-left>
        <f7-link icon-f7="arrow_left" class="back link"></f7-link>
      </f7-nav-left>
      <f7-nav-title>文件预览</f7-nav-title>
      <f7-nav-right>
        <f7-link></f7-link>
      </f7-nav-right>
    </f7-navbar>
    <div class="page-content" style="padding-top: 0px; !important">
      <iframe
        :src="`static/pdfjs/web/viewer.html?file=${path}`"
        style="border:0px !important;margin-top: 2px;"
        width="100%"
        height="100%"
      ></iframe>
    </div>
  </f7-page>
</template>
<script>
import controller from "@/libs/framework/controller";
export default class instance extends controller {
  onInit() {
    this.context.path = this.$f7route.query.path;
  }
}
</script>
<style scoped>
</style>